package net.xiaoyu233.mitemod.miteite.render.entity;
import net.minecraft.*;
import net.xiaoyu233.mitemod.miteite.entity.EntityInfernalOverlord;
import org.lwjgl.opengl.GL11;

public class RenderzimberBoss extends bgu{
    public RenderzimberBoss() {
        super(new bcm(), 0.6F, 1.8F);
    }

    @Override
    protected void setTextures() {
        this.setTexture(0, "textures/entity/zombie_Boss");
    }
    protected bjo a(EntityZombie par1EntityZombie) {
        return this.textures[0];
    }
    protected bjo a(Entity par1Entity) {
        return this.a((EntityZombie)par1Entity);
    }


    @Override
    protected void a(EntityLiving par1EntityLivingBase, float par2, float par3, float par4) {

        if (par1EntityLivingBase instanceof EntityInfernalOverlord){
            EntityInfernalOverlord boss = (EntityInfernalOverlord) par1EntityLivingBase;
            if (boss.getDataWatcher().getWatchableObjectByte(boss.DATA_OBJ_IS_enlarge) != 0 ) {
//                  GL11.glScalef(1.3571428F, 1.2068965F, 1.3571428F);
                GL11.glScalef(1.5f, 1.5f, 1.5F);

            }
        }
        super.a(par1EntityLivingBase, par2, par3, par4);
    }

}
